﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/MIOS.master" AutoEventWireup="true" CodeFile="MyOrder.aspx.cs" Inherits="User_Order" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>订单</p>
    <p>
        <asp:GridView ID="MyOrderView" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True">
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%# (Container.DataItemIndex+1).ToString()%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="订单日期" DataField="orderTime" />
                <asp:BoundField DataField="kindnum" HeaderText="乐器种类" />
                <asp:BoundField HeaderText="送货方式" DataField="way" />
                <asp:BoundField HeaderText="送货地址" DataField="address" />
                <asp:BoundField HeaderText="订单状态" DataField="orderState" />
                 <asp:BoundField DataField="moneysum" HeaderText="总价" />
                 <asp:TemplateField>
                     <HeaderStyle HorizontalAlign=Center />
                     <ItemStyle HorizontalAlign =Center />
                     <ItemTemplate >
                         <asp:linkButton ID="lnkbtnCheck" runat="server" CommandArgument ='<%#Eval("orderID") %>' OnCommand ="lnkbtnCheck_Command" Text="查看" />
                     </ItemTemplate>    
                 </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </p>
    <p>
        <table style="width: 94%;">
            <tr>
                <td class="style143">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnOK" runat="server" onclick="btnOK_Click" Text="确定" 
                        Width="58px" />
                </td>
            </tr>
        </table>
    </p>
</asp:Content>

